home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: Help C++ 3.0 Menu
- Date: 7 Feb 1996 12:22:48 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4fa5io$puh@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 06, 1996 22:32:06 in article <Help C++ 3.0 Menu>,
- 'dlanctot@blvl.igs.net (Daniel Lanctot)' wrote:
-
-
- >I have created a menu system for school and it works great until somebody
-
- >types a char.I used a do while loop and case: statement. How would I be
- able
- >too use the up and down arrows also if any body has an idea Please reply
- >
- The answer depends on your platform and compiler system. I'm
- guessing DOS and Borland/Turbo.
-
- Use <conio.h> and get your input with getch(). If the value returned
- is 0, the next call to getch() returns the code for the extended key
- pressed. To find out the values for extended keys (and to get a
- little extra programming practice) write a program that inputs via
- getch() and prints out the decimal value of the key pressed. The
- arrow keys are somewhere in the vicinity of 75.
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-